/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hijh.uniandes.ecos.runt.services.client;

/**
 *
 * @author Usuario
 */
public class RNLServiceHandler {

    public boolean ExisteCedula(String cedula)
    {
        boolean retval = false;
        try { // Call Web Service Operation
           RNLExternalRulesService service = new RNLExternalRulesService();
           RNLExternalRules port = service.getRNLExternalRulesPort();
           retval = port.existeCedula(cedula);
        } catch (Exception ex) {
           // TODO handle custom exceptions here
        }
        return retval;
    }
    
    public boolean ExisteSerialMotor(String serial)
    {
        boolean retval = false;
        
        try { // Call Web Service Operation
           RNLExternalRulesService service = new RNLExternalRulesService();
           RNLExternalRules port = service.getRNLExternalRulesPort();
           retval = port.existeSerialMotor(serial);
        } catch (Exception ex) {
           // TODO handle custom exceptions here
        }

        return retval;
    }
    
    public boolean TieneProcesosJudiciales(String identificacion)
    {
        boolean retval = true;
        
        try { // Call Web Service Operation
           RNLExternalRulesService service = new RNLExternalRulesService();
           RNLExternalRules port = service.getRNLExternalRulesPort();
           retval = port.tieneProcesosJudiciales(identificacion);
        } catch (Exception ex) {
           // TODO handle custom exceptions here
        }

        return retval;
    }
}
